package com.define.ssh.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.define.ssh.dao.DeptAccountDao;
import com.define.ssh.model.DeptAccount;
import com.define.ssh.service.DeptAccountService;

@Service("deptAccountServiceImpl")
public class DeptAccountServiceImpl extends BaseServiceImpl<DeptAccount, Long>
		implements DeptAccountService {

	@Resource(name = "deptAccountDaoImpl")
	private DeptAccountDao deptAccountDao;

	@Resource(name = "deptAccountDaoImpl")
	public void setBaseDao(DeptAccountDao deptAccountDao) {
		super.setBaseDao(deptAccountDao);
	}

	/***
	 * 删除该用户 对应的部门
	 * 
	 * @param user_id
	 */
	@Override
	public void delDeptAccountByUserId(Long user_id) {
		this.deptAccountDao.delDeptAccountByUserId(user_id);
	}

	
	public void save(List<Object[]> list){
		this.deptAccountDao.save(list);
	}
}
